<%--
  Created by IntelliJ IDEA.
  User: HUAWEI
  Date: 2021/11/2
  Time: 12:59
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
    <div>
        商户订单号:${order.out_trade_no}<br>
        用户id:${order.uid}<br>
        付款金额:${order.total_amount}<br>
        付款时间:${order.createdate}<br>
        订单名称:${order.subject}<br>
        商品描述:${order.body}<br>

        <span id="jumpTo" style="color: #00a7d0">5</span>秒后自动跳转到logins.jsp
    </div>
<script type="text/javascript">
  function countDown(secs,surl){
    //alert(surl);
    var jumpTo = document.getElementById('jumpTo');
    jumpTo.innerHTML=secs;
    if(--secs>0){
      setTimeout("countDown("+secs+",'"+surl+"')",1000);
    }
    else{
      location.href=surl;
    }
  }

  countDown(5,'logins.jsp');
</script>
</body>
</html>
